<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>课程信息</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>
	

  </head>
  
 <body>

	<div class="panel admin-panel">
		<div class="panel-head">
			<strong class="icon-reorder"> 课程信息列表</strong>
		</div>
		<div class="padding border-bottom">
			<ul class="search" style="padding-left:10px;">
				<li><a class="button border-main icon-plus-square-o"
					href="CourseAction_openAdd"> 添加课程信息</a></li>
				<li>搜索：</li>

				<li>
					<form method="post"
						action="CourseAction_findByCourseName">
						<input type="text" placeholder="请输入课程名称" name="courseName" 
							class="input"
							style="width:250px; line-height:17px;display:inline-block" />  
						<button type="submit" class="button border-main icon-search">搜索</button>
					</form>
				</li>

			</ul>
		</div>
		<table class="table table-hover text-center">
			<tr>
				<th>序号</th>
				<th>课程编号</th>
				<th>课程名称</th>
				<th>任教老师</th>
				<th>操作</th>
			</tr>
			<c:forEach var="lists" items="${lists}">
					<tr>
					<td>${lists.id}</td>
					<td>${lists.courseId}</td>
					<td>${lists.courseName}</td>
					<td>${lists.teacherId}</td>
					<td>
						<div class="button-group">
							<a class="button border-main"
								href="CourseAction_openEdit?id=${lists.id }"><span
								class="icon-edit"></span> 修改</a> <a class="button border-red"
								href="CourseAction_delete?id=${lists.id }" onclick="myFunction()"><span
								class="icon-trash-o"></span> 删除</a>
						</div>
					</td>
					</tr>
			</c:forEach>

		</table>
	</div>
	<div class="pagelist">
		<a href="">上一页</a> <span class="current">1</span><a href="">2</a><a
			href="">3</a><a href="">下一页</a><a href="">尾页</a>
	</div>
<script>
//onclick="myFunction()"
function myFunction()
{
    alert("确认删除?");
}
</script>
</body>
</html>
